<?php
use think\facade\Route;
// I组 admin.php需要定义的路由
// 登录
Route::rule('adminshowlog$','admin/alogin');
// 登录验证
Route::rule('doadminlog$','admin/doalogin');
// 注销
Route::rule('adminlogout$','admin/alogout');
// 修改密码页面
Route::rule('adminshowapa$','admin/apa');
// 执行修改
Route::post('adminadopa$','admin/adopa');

//I组 deal.php需要定义的路由
// 帖子管理页
Route::rule('adminmes/<sid?>$','deal/mesdeal','GET|POST');
// 后台帖子详细页
Route::rule('adminres/<mid?>$','deal/adetail','GET|POST');
// 执行删除帖子
Route::rule('adminmesdel/<mid?>$','deal/mesdel','GET|POST');
// 执行删除回复
Route::rule('adminresdel/<rid?>$','deal/resdel','GET|POST');
// 回收站管理页
Route::rule('adminbin$','deal/bindeal','GET|POST');
// 用户管理页
Route::rule('adminuser$','deal/userdeal','GET|POST');
// 修改用户权限页面
Route::rule('adminpower/<unick?>$','deal/userpower','GET|POST');
// 执行修改用户权限页面
Route::rule('adminmodipower/<unick?>$','deal/modipower','GET|POST');
// 版块管理页
Route::rule('adminsec$','deal/secdeal','GET|POST');
// 添加版块页面
Route::rule('adminsecadd/<sid?>$','deal/secadd','GET|POST');
// 执行添加版块
Route::rule('adminsecdoadd/<sid?>$','deal/secdoadd','GET|POST');
// 版块修改页面
Route::rule('adminsecinfo/<sid?>$','deal/secinfo','GET|POST');
// 执行修改板块
Route::rule('adsecinfomodi/<sid?>$','deal/secinfomodi','GET|POST');
// 执行版块删除
Route::rule('adminsecdel/<sid?>$','deal/secdel','GET|POST');

//I组 advdeal.php需要定义的路由
// 广告管理页面
Route::rule('adminadvdeal$','advdeal/advdeal','GET|POST');
// 广告添加页面
Route::rule('adminadvadd$','advdeal/advadd','GET|POST');
// 执行广告添加
Route::rule('adadvdoadd$','advdeal/advdoadd','GET|POST');
// 广告修改页面
Route::rule('adminadvinfo/<aid?>$','advdeal/advinfo','GET|POST');
// 执行广告修改
Route::rule('adadvinfomodi/<aid?>$','advdeal/advdeal','GET|POST');
// 执行广告删除
Route::rule('adminadvdel/<aid?>$','advdeal/advdel','GET|POST');
// 执行广告审核
Route::rule('adminadvok/<aid?>$','advdeal/advok','GET|POST');
Route::rule('adminadvstop/<aid?>$','advdeal/advstop','GET|POST');
//轮播图管理页面
Route::rule('adminboxdeal$','advdeal/boxdeal','GET|POST');
// 轮播图添加页面
Route::rule('adminboxadd$','advdeal/boxadd','GET|POST');
// 轮播图执行添加
Route::rule('adboxdoadd$','advdeal/boxdoadd','GET|POST');
// 轮播图修改页面
Route::rule('adboxinfo/<cid?>$','advdeal/boxinfo','GET|POST');
// 执行轮播图修改
Route::rule('adboxinfomodi/<cid?>$','advdeal/boxinfomodi','GET|POST');
// 执行轮播图审核
Route::rule('adboxok/<cid?>$','advdeal/boxok','GET|POST');
Route::rule('adboxban/<cid?>$','advdeal/boxban','GET|POST');
// 执行轮播图删除
Route::rule('adboxdel/<cid?>$','advdeal/boxdel','GET|POST');

// I组 bindeal.php需要定义路由的有
// 帖子回收站管理
Route::rule('adbinmesdeal/<sid?>$','bindeal/binmesdeal','GET|POST');
// 执行帖子回收
Route::rule('adbinmesdel/<mid?>$','bindeal/binmesdel','GET|POST');
// 执行还原帖子
Route::rule('adbinmesback/<mid?>$','bindeal/binmesback','GET|POST');
// 版块回收站页面
Route::rule('adbinsecdeal$','bindeal/binsecdeal','GET|POST');
// 执行版块回收
Route::rule('adbinsecdel/<sid?>$','bindeal/binsecdel','GET|POST');
// 执行还原版块
Route::rule('adbinsecback/<sid?>$','bindeal/binsecback','GET|POST');
// 回复回收站页面
Route::rule('adbinresdeal/<sid?>$','bindeal/binresdeal','GET|POST');
// 执行回复回收
Route::rule('adbinresdel/<rid?>$','bindeal/binresdel','GET|POST');
// 执行回复还原
Route::rule('adbinresback/<rid?>$','bindeal/binresback','GET|POST');

// miss路由
Route::miss('public/miss');
